package org.example.service.impl;

import org.example.mapper.TodyFruitMapper;
import org.example.domain.TodyFruit;
import org.example.service.TodyFruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TodyFruitServiceImpl implements TodyFruitService {
    /**
     * 获取所有货架水果
     * @return 水果列表
     */
    @Autowired
    TodyFruitMapper todyFruitMapper;
    /**
     * 获取所有货架水果
     * @return 水果列表
     */
    @Override
    public List<TodyFruit> getAllFruits() {
        return todyFruitMapper.getAllFruits();
    }
}
